package com.yao.dao;

import com.yao.domain.Role;
import com.yao.domain.User;

import java.util.List;

public interface UserDao {
    List<User> list();

    Long save(User user);


    void saveUserRoleRel(Long userId, Long[] roleIds);

    void deleteUserById(Long userId);

    void deleteUserAndRoleById(Long userId);

    User findByUsernameAndPassword(String username, String password);
}
